package GaoYuXuan.Homework0714;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-14 19:49:49
 */
public class Demo1 {
    private String name;

    public Demo1(String name){
        this.name = name;
    }

    public Demo1(){

    }

    public String getName(){
        return name;
    }

    public void setName(){
        this.name = name;
    }

    public void finalize() throws Throwable{
        System.out.println(this.name + "结束");
    }
}